package creationtype.builderpattern;
/**
 * 邢帅教育
 * <p>
 * 本源代码由数据中心及其作者共同所有，未经版权持有者的事先书面授权，
 * 不得使用、复制、修改、合并、发布、分发和/或销售本源代码的副本。
 *
 * @copyright Copyright (c) 2018. xsteach.com all rights reserved.
 */

import creationtype.builderpattern.builder.BeverageShop;
import creationtype.builderpattern.drink.Drink;
import lombok.Setter;

/**
 * @author maikec
 * @date 2018/9/2
 */
public class Salesmen {
    @Setter
    private BeverageShop beverageShop;
    public Drink saleDrink() {
        //做饮料
        beverageShop.getDrink();
        //拿到杯子
        beverageShop.getCup();
        //成型的饮料（商品）
        return beverageShop.getGoods();
    }
}
